<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>STAPpp: Clock Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">STAPpp
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">STAPpp is a C++ finite element method (FEM) code whose input/output data files are the same as STAP90.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="class_clock-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Clock Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="class_clock.html" title="Clock class for timing. ">Clock</a> class for timing.  
 <a href="class_clock.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_clock_8h_source.html">Clock.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:adbc370eb6b5f8d01645cf440188160a8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_clock.html#adbc370eb6b5f8d01645cf440188160a8">Clock</a> ()</td></tr>
<tr class="memdesc:adbc370eb6b5f8d01645cf440188160a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="#adbc370eb6b5f8d01645cf440188160a8">More...</a><br /></td></tr>
<tr class="separator:adbc370eb6b5f8d01645cf440188160a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac034a45c8476b44c262f97c4b62f4772"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_clock.html#ac034a45c8476b44c262f97c4b62f4772">Start</a> ()</td></tr>
<tr class="memdesc:ac034a45c8476b44c262f97c4b62f4772"><td class="mdescLeft">&#160;</td><td class="mdescRight">Start the clock.  <a href="#ac034a45c8476b44c262f97c4b62f4772">More...</a><br /></td></tr>
<tr class="separator:ac034a45c8476b44c262f97c4b62f4772"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ee8cacd91323a41359ae592d14141d8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_clock.html#a9ee8cacd91323a41359ae592d14141d8">Stop</a> ()</td></tr>
<tr class="memdesc:a9ee8cacd91323a41359ae592d14141d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stop the clock.  <a href="#a9ee8cacd91323a41359ae592d14141d8">More...</a><br /></td></tr>
<tr class="separator:a9ee8cacd91323a41359ae592d14141d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef881ddb88e4d9ff9ba29c157d91b3be"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_clock.html#aef881ddb88e4d9ff9ba29c157d91b3be">Resume</a> ()</td></tr>
<tr class="memdesc:aef881ddb88e4d9ff9ba29c157d91b3be"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resume the stoped clock.  <a href="#aef881ddb88e4d9ff9ba29c157d91b3be">More...</a><br /></td></tr>
<tr class="separator:aef881ddb88e4d9ff9ba29c157d91b3be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3eeab6b8f32f9fa4422c1f0500c0217"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_clock.html#ab3eeab6b8f32f9fa4422c1f0500c0217">Clear</a> ()</td></tr>
<tr class="memdesc:ab3eeab6b8f32f9fa4422c1f0500c0217"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clear the clock.  <a href="#ab3eeab6b8f32f9fa4422c1f0500c0217">More...</a><br /></td></tr>
<tr class="separator:ab3eeab6b8f32f9fa4422c1f0500c0217"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a916140301f1903c00e6b1662a9fbfe7a"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_clock.html#a916140301f1903c00e6b1662a9fbfe7a">ElapsedTime</a> ()</td></tr>
<tr class="memdesc:a916140301f1903c00e6b1662a9fbfe7a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the elapsed time since the clock started.  <a href="#a916140301f1903c00e6b1662a9fbfe7a">More...</a><br /></td></tr>
<tr class="separator:a916140301f1903c00e6b1662a9fbfe7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a030557049c501258d789e3fd4a07634c"><td class="memItemLeft" align="right" valign="top">clock_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_clock.html#a030557049c501258d789e3fd4a07634c">t0_</a></td></tr>
<tr class="separator:a030557049c501258d789e3fd4a07634c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a211446657ed114cb4f3d985f5f83dd40"><td class="memItemLeft" align="right" valign="top">clock_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_clock.html#a211446657ed114cb4f3d985f5f83dd40">t1_</a></td></tr>
<tr class="separator:a211446657ed114cb4f3d985f5f83dd40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5adfc7eee29601199b55addedc66fd97"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_clock.html#a5adfc7eee29601199b55addedc66fd97">ct_</a></td></tr>
<tr class="separator:a5adfc7eee29601199b55addedc66fd97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a482ed3967cba675485c20a0e97e0b774"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_clock.html#a482ed3967cba675485c20a0e97e0b774">st0_</a></td></tr>
<tr class="memdesc:a482ed3967cba675485c20a0e97e0b774"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flag for Start method.  <a href="#a482ed3967cba675485c20a0e97e0b774">More...</a><br /></td></tr>
<tr class="separator:a482ed3967cba675485c20a0e97e0b774"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ccb40bca220f16d092e4b201e8c913c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_clock.html#a5ccb40bca220f16d092e4b201e8c913c">st1_</a></td></tr>
<tr class="memdesc:a5ccb40bca220f16d092e4b201e8c913c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flag for Stop method.  <a href="#a5ccb40bca220f16d092e4b201e8c913c">More...</a><br /></td></tr>
<tr class="separator:a5ccb40bca220f16d092e4b201e8c913c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="class_clock.html" title="Clock class for timing. ">Clock</a> class for timing. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="adbc370eb6b5f8d01645cf440188160a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adbc370eb6b5f8d01645cf440188160a8">&#9670;&nbsp;</a></span>Clock()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Clock::Clock </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ab3eeab6b8f32f9fa4422c1f0500c0217"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3eeab6b8f32f9fa4422c1f0500c0217">&#9670;&nbsp;</a></span>Clear()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Clock::Clear </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clear the clock. </p>

</div>
</div>
<a id="a916140301f1903c00e6b1662a9fbfe7a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a916140301f1903c00e6b1662a9fbfe7a">&#9670;&nbsp;</a></span>ElapsedTime()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Clock::ElapsedTime </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the elapsed time since the clock started. </p>

</div>
</div>
<a id="aef881ddb88e4d9ff9ba29c157d91b3be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef881ddb88e4d9ff9ba29c157d91b3be">&#9670;&nbsp;</a></span>Resume()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Clock::Resume </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Resume the stoped clock. </p>

</div>
</div>
<a id="ac034a45c8476b44c262f97c4b62f4772"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac034a45c8476b44c262f97c4b62f4772">&#9670;&nbsp;</a></span>Start()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Clock::Start </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Start the clock. </p>

</div>
</div>
<a id="a9ee8cacd91323a41359ae592d14141d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ee8cacd91323a41359ae592d14141d8">&#9670;&nbsp;</a></span>Stop()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Clock::Stop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Stop the clock. </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a5adfc7eee29601199b55addedc66fd97"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5adfc7eee29601199b55addedc66fd97">&#9670;&nbsp;</a></span>ct_</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double Clock::ct_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a482ed3967cba675485c20a0e97e0b774"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a482ed3967cba675485c20a0e97e0b774">&#9670;&nbsp;</a></span>st0_</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool Clock::st0_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Flag for Start method. </p>

</div>
</div>
<a id="a5ccb40bca220f16d092e4b201e8c913c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ccb40bca220f16d092e4b201e8c913c">&#9670;&nbsp;</a></span>st1_</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool Clock::st1_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Flag for Stop method. </p>

</div>
</div>
<a id="a030557049c501258d789e3fd4a07634c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a030557049c501258d789e3fd4a07634c">&#9670;&nbsp;</a></span>t0_</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">clock_t Clock::t0_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a211446657ed114cb4f3d985f5f83dd40"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a211446657ed114cb4f3d985f5f83dd40">&#9670;&nbsp;</a></span>t1_</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">clock_t Clock::t1_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/Users/xzhang/git/FEM-Projects/STAPpp/src/h/<a class="el" href="_clock_8h_source.html">Clock.h</a></li>
<li>/Users/xzhang/git/FEM-Projects/STAPpp/src/cpp/<a class="el" href="_clock_8cpp.html">Clock.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
